//<!-- Copyright 2003, Sandeep Gangadharan -->
//<!-- For more free scripts go to http://www.sivamdesign.com/scripts/ -->
//<!-- 

	function sivamtime() 
	{
		now=new Date();
		hour=now.getHours();
		min=now.getMinutes();
		sec=now.getSeconds();
		
		day=now.getDay();
		date=now.getDate();
		month=now.getMonth() + 1;
		year=now.getFullYear();

		if (min<=9) { min="0"+min; }
		if (sec<=9) { sec="0"+sec; }
		
		if (day==0) {dayname = "Sun";} else
		if (day==1) {dayname = "Mon";} else
		if (day==2) {dayname = "Tue";} else
		if (day==3) {dayname = "Wed";} else
		if (day==4) {dayname = "Thu";} else
		if (day==5) {dayname = "Fri";} else
		if (day==6) {dayname = "Sat";} else
		{dayname = "-";}
		
		if (month==1) {monthname = "January";} else
		if (month==2) {monthname = "February";} else
		if (month==3) {monthname = "March";} else
		if (month==4) {monthname = "April";} else
		if (month==5) {monthname = "May";} else
		if (month==6) {monthname = "June";} else
		if (month==7) {monthname = "July";} else
		if (month==8) {monthname = "August";} else
		if (month==9) {monthname = "September";} else
		if (month==10) {monthname = "October";} else
		if (month==11) {monthname = "November";} else
		if (month==12) {monthname = "December";} else
		{monthname = "-";}
		
		time = dayname + ", " + date + " " + monthname + " " + year + ", " + ((hour<=9) ? "0"+hour : hour) + ":" + min + ":" + sec;

		if (document.getElementById) { document.getElementById('theTime').innerHTML = time; }
		else if (document.layers) 
		{
			document.layers.theTime.document.write(time);
			document.layers.theTime.document.close(); 
		}

		setTimeout("sivamtime()", 1000);
	}
	window.onload = sivamtime;

// -->